const NameEdit=(props)=>{
    const {userName,onChange} = props;
    return (
        <div>
            <label>Updata name</label>
            <input value={userName} onChange={onChange}/>
        </div>
    )
}
export default NameEdit;